package MyDaily.pojo;

import java.sql.Date;

public class User {
	private int id;// id
	private String phone;// 电话
	private String name;// 用户昵称
	private String password;// 用户密码
	private String sex;// 用户性别
	private Date birthday;// 用户生日

	// 生成getters,setters方法
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	// 重写tostring方法
	@Override
	public String toString() {
		return "User [id=" + id + ", phone=" + phone + ", name=" + name + ", password=" + password + ", sex=" + sex
				+ ", birthday=" + birthday + "]";
	}

}
